package lsf.itcast.service;

import lsf.itcast.domain.Permission;
import lsf.itcast.domain.Role;

import java.util.List;

public interface RoleService {
    List<Role> findAll();

    void save(Role role);
    //根据用户id查询所有角色
    List<Role> findOtherRole(String userId);


    Role findById(String roleId);

    //跟角色添加权限
    void addPermissionToRole(String roleId,String[] permissionIds);
}
